package com.hbean;

import com.hbean.system.listener.SessionListener;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;

@Slf4j
@SpringBootApplication
@MapperScan("com.hbean.mapper")
@ServletComponentScan(basePackageClasses = SessionListener.class)
@EnableCaching //开启缓存
public class HbeanApplication {

	public static void main(String[] args) {
		log.info("######开始启动项目######");
		SpringApplication.run(HbeanApplication.class, args);
	}
}
